import React from 'react';
import Route from 'react-router/lib/Route';

import Home from './components/Home';
import MyFavourite from './components/index';
import Test from './components/Test';
import FullpageTree from './components/fullpageTree';
import stores from './stores/index';
import { WeaLocaleProvider } from 'ecCom';

const getLocaleLabel = WeaLocaleProvider.getLocaleLabel.bind(this, 'favourite');
const FavouriteRoute = (
  <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@0fmw3a`} path="favourite" onEnter={getLocaleLabel} component={Home}>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@i8kzvv`} name="index" path="index" component={MyFavourite} />
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@mhdbuv`} name="test" path="test" component={Test} />
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@thguae`} name="tree" path="tree" component={FullpageTree} />
  </Route>
);

export default {
  routes: FavouriteRoute,
  stores,
};
